package day19.edu;

import org.junit.Test;

import java.util.Random;

// Created: 19/09/2025, ChangJiang Ru
public class MathTest {
    @Test
    public void test1()
    {
        System.out.println(Math.round(12.3));
        System.out.println(Math.round(12.5));
        System.out.println(Math.round(12.7));
        System.out.println(Math.round(-12.3)); // -12
        System.out.println(Math.round(-12.5)); // -13
        System.out.println(Math.round(-12.8));
    }
    @Test
    public void test2()
    {
        Random random = new Random();
        int i = random.nextInt();
        System.out.println(i);

        int j = random.nextInt(10);
        System.out.println(j);
    }
}
